package com.yanqu.road.entity.log.cross.horserun;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.List;
import java.util.Map;

@FieldTypeAnnotation(desc = "小马快跑赛马结算日志", tableName = "t_c_log_horse_run_racing", autoSave = true, dataUpload = true, eventName = "horserun_compete", uploadCk = true, isCross = true)
public class LogHorseRunRacingResult extends ServerBaseLog {

    @FieldTypeAnnotation(isIndex = true, desc = "活动id", dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(isIndex = true, desc = "分组id")
    private int groupId;
    @FieldTypeAnnotation(desc = "赛场类型", dataAttribute = "horserun_comid")
    private int zone;
    @FieldTypeAnnotation(desc = "用户id")
    private long userId;
    @FieldTypeAnnotation(desc = "所属商会", dataAttribute = "guild_id")
    private String unionId;
    @FieldTypeAnnotation(desc = "小马评分", dataAttribute = "horserun_score")
    private long grade;
    @FieldTypeAnnotation(desc = "精力等级", dataAttribute = "horserun_enelv")
    private int energyLv;
    @FieldTypeAnnotation(desc = "技巧等级", dataAttribute = "horserun_skilv")
    private int artLv;
    @FieldTypeAnnotation(desc = "抗性等级", dataAttribute = "horserun_reslv")
    private int resistanceLv;
    @FieldTypeAnnotation(desc = "总属性map")
    private Map<Integer, Integer> totalAttr;
    @FieldTypeAnnotation(desc = "技能列表", dataAttribute = "horserun_holist")
    private List<Integer> skillList;
    @FieldTypeAnnotation(desc = "排行", dataAttribute = "horserun_comrank")
    private int rank;
    @FieldTypeAnnotation(desc = "获得积分", dataAttribute = "horserun_comscore")
    private int score;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getZone() {
        return zone;
    }

    public void setZone(int zone) {
        this.zone = zone;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public long getGrade() {
        return grade;
    }

    public void setGrade(long grade) {
        this.grade = grade;
    }

    public int getEnergyLv() {
        return energyLv;
    }

    public void setEnergyLv(int energyLv) {
        this.energyLv = energyLv;
    }

    public int getArtLv() {
        return artLv;
    }

    public void setArtLv(int artLv) {
        this.artLv = artLv;
    }

    public int getResistanceLv() {
        return resistanceLv;
    }

    public void setResistanceLv(int resistanceLv) {
        this.resistanceLv = resistanceLv;
    }

    public List<Integer> getSkillList() {
        return skillList;
    }

    public void setSkillList(List<Integer> skillList) {
        this.skillList = skillList;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public LogHorseRunRacingResult(int activityId, int groupId, int zone, long userId, String unionId, long grade, int energyLv, int artLv, int resistanceLv, Map<Integer, Integer> totalAttr, List<Integer> skillList, int rank, int score) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.zone = zone;
        this.userId = userId;
        this.unionId = unionId;
        this.grade = grade;
        this.energyLv = energyLv;
        this.artLv = artLv;
        this.resistanceLv = resistanceLv;
        this.totalAttr = totalAttr;
        this.skillList = skillList;
        this.rank = rank;
        this.score = score;

    }

    public Map<Integer, Integer> getTotalAttr() {
        return totalAttr;
    }

    public void setTotalAttr(Map<Integer, Integer> totalAttr) {
        this.totalAttr = totalAttr;
    }

    public LogHorseRunRacingResult() {
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
